package com.campsys.mapping;

import com.campsys.domain.TManagerTeacher;
import com.campsys.domain.param.TeacherAddParam;
import com.campsys.domain.param.TeacherUpdateParam;
import com.campsys.domain.param.UserAddParam;
import com.campsys.domain.vo.TeacherListVo;
import com.campsys.domain.vo.TeacherPageVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface TeacherMapping {

    TeacherMapping INSTANCE = Mappers.getMapper(TeacherMapping.class);

    UserAddParam toUser(TeacherAddParam teacherAddParam);

    TManagerTeacher to(TeacherAddParam teacherAddParam);

    TManagerTeacher to(TeacherUpdateParam teacherUpdateParam);

    List<TeacherListVo> toList(List<TManagerTeacher> list);

    List<TeacherPageVo> toPage(List<TManagerTeacher> list);
}
